﻿using System.Collections.Generic;
using System.Linq;
using PortalCurriculo.Domain.Interface;

namespace PortalCurriculo.Domain
{
    public partial class Evento : IEvento
    {
        public List<Evento> ListarPorVaga()
        {
            return (from Evento evento in Context.Instance.Eventoes
                    where evento.IdVaga.Equals(IdVaga)
                    && evento.Ativo
                    select evento).ToList();
        }
    }
}
